import request from '@/utils/request'

// 查询药品变动明细列表
export function listDrugMovements(query) {
  return request({
    url: '/manage/drugMovements/list',
    method: 'get',
    params: query
  })
}

// 查询药品变动明细详细
export function getDrugMovements(movementId) {
  return request({
    url: '/manage/drugMovements/' + movementId,
    method: 'get'
  })
}

// 新增药品变动明细
export function addDrugMovements(data) {
  return request({
    url: '/manage/drugMovements',
    method: 'post',
    data: data
  })
}

// 修改药品变动明细
export function updateDrugMovements(data) {
  return request({
    url: '/manage/drugMovements',
    method: 'put',
    data: data
  })
}

// 删除药品变动明细
export function delDrugMovements(movementId) {
  return request({
    url: '/manage/drugMovements/' + movementId,
    method: 'delete'
  })
}
